﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="position_type.aspx.cs" Inherits="EDP.Application.Web.Organization.position_type" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('grid_List_ctl00_btn_query');
                __doPostBack('grid_List$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="grid_List" runat="server" />
        <f:Grid ID="grid_List" runat="server" Title="职类管理" RegionPosition="Center" Margin="10" DataKeyNames="ID" EnableCheckBoxSelect="false" SortField="LevelsUpper" SortDirection="DESC"
            OnPreRowDataBound="grid_List_PreRowDataBound" OnPageIndexChange="grid_List_PageIndexChange" OnSort="grid_List_Sort" OnRowCommand="grid_List_RowCommand">
            <Toolbars>
                <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                    <Items>
                        <f:TextBox ID="tb_name" runat="server" EmptyText="职类名称/职类标记" QueryName="NumbersLabelKeyword" TextMode="Text" Margin="0" Width="240" />
                        <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" />
                        <f:ToolbarFill runat="server" />
                        <f:Button ID="btn_position_type_add" runat="server" Text="新增职类" Icon="Add" Margin="0 10 0 0" />
                        <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多..." EnablePostBack="false">
                            <Menu runat="server" Margin="0">
                                <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" OnClick="btn_cache_Click" />
                            </Menu>
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Columns>
                <f:BoundField DataField="Name" Width="150" HeaderText="职类名称" />
                <f:BoundField DataField="Label" Width="100" HeaderText="职类标记" />
                <f:BoundField DataField="LevelsLower" Width="100" HeaderText="职级下限" TextAlign="right" />
                <f:BoundField DataField="LevelsUpper" Width="100" HeaderText="职级上限" TextAlign="right" />
                <f:BoundField DataField="GradeScope" Width="120" HeaderText="职级范围" />
                <f:BoundField DataField="Remarks" ExpandUnusedSpace="true" HeaderText="描述" />
                <f:BoundField DataField="CreateUserName" Width="80" HeaderText="创建人" />
                <f:BoundField DataField="CreateTime" Width="140" HeaderText="创建时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" TextAlign="center" />
                <f:BoundField DataField="ModifyUserName" Width="80" HeaderText="修改人" />
                <f:BoundField DataField="ModifyTime" Width="140" HeaderText="修改时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" TextAlign="center" />
                <f:LinkButtonField ColumnID="lb_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态" CommandTitle="设置职类启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                <f:LinkButtonField ColumnID="lb_edit" Width="30" CommandName="edit" EnableLock="true" ToolTip="编辑" CommandTitle="编辑职类" Icon="TableEdit" TextAlign="center" />
                <f:LinkButtonField ColumnID="lb_delete" Width="30" CommandName="delete" EnableLock="true" ToolTip="删除" CommandTitle="删除职类" Icon="Delete"
                    ConfirmTitle="删除职类" ConfirmText="是否删除该职类？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
            </Columns>
        </f:Grid>
        <f:Window ID="win_edit" runat="server" Width="700" Height="500" OnClose="win_edit_Close" />
    </form>
</body>
</html>
